import App from './App'
// import LoginDialog from "component/login.vue"


// Vue.component("LoginDialog",LoginDialog);
import http from './script/api.js' //http请求
import share from "./script/share.js";
Vue.prototype.$baseUrl = http.baseUrl;
Vue.prototype.$http = http.httpTokenRequest;
Vue.prototype.$prefix=http.prefix;   // console.log(this.$prefix('asagsa/aa.png')); 
Vue.prototype.$encryptPhone=http.phoneStr;
Vue.prototype.$http_url=http.http_url;
Vue.prototype.$getToday=http.getToday;
Vue.prototype.$intervalTime=http.intervalTime;
Vue.prototype.$getSharePoint=http.getSharePoint;
Vue.prototype.$parseTime=http.parseTime;


// #ifndef VUE3
import Vue from 'vue'

import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.$themeColor = '#ff6700'; // 主题色
Vue.mixin(share);

App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
  
  
}
// #endif